package com.easybbs.entity.constants;

public class Constants {
    public static final String READ_IMAGE_PATH = "/api/file/getImage/";
    //附件大小
    public static final Integer FILE_SIZE_1M = 1024 * 1024;
    //默认头像路径
    public static final String AVATAR_DEFAULT = "default_avatar.jpg";
    //上传头像的通用图片后缀
    public static final String AVATAR_SUFFIX = ".jpg";
    //头像目录
    public static final String FILE_FOLDER_AVATAR_NAME = "avatar/";
    //图片目录
    public static final String FILE_FOLDER_IMAGE = "images/";
    public static final String FILE_FOLDER_TEMP_2 = "temp";
    //临时目录
    public static final String FILE_FOLEDR_TEMP = "/temp/";
    //图片后缀
    public static final String[] IMAGE_SUFFIX = new String[]{".png", ".PNG", ".jpg", ".JPG", ".jpeg", ".JPEG", ".gif", ".GIF", ".bmp", ".BMP"};
    //下载的附件文件目录
    public static final String FILE_FOLDER_ATTACHMENT = "attachment/";
    //文件目录
    public static final String FILE_FOLDER_FILE = "/file/";
    public static final Integer ONE = 1;
    //登录的session key
    public static final String SESSION_KEY = "session_key";
    public static final String SESSION_KEY_FREQUENCY = "session_key_FREQUENCY";
    //定义默认的ip地址
    public static final String NO_ADDRESS = "未知";
    //注册给的积分
    public static final Integer INTEGRAL_5 = 5;
    public static final Integer LENGTH_10 = 10;
    public static final Integer LENGTH_15 = 15;
    public static final Integer LENGTH_30 = 30;
    //文件上传路径总长度
    public static final Integer LENGTH_200 = 200;
    public static final Integer LENGTH_190 = 190;
    public static final Integer ZERO = 0;
    public static final Integer LENGTH_5 = 5;
    //验证码的session
    public static final String CHECK_CODE_KEY = "check_code_key";
    //邮箱验证码的session
    public static final String CHECK_CODE_KEY_EMAIL = "check_code_key_email";
    public static final String STATUC_SUCCESS = "success";
    public static final String STATUC_ERROR = "error";

}
